package com.cjx.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjx.api.model.dto.interfaceinfo.InvokeRequest;
import com.cjx.api.model.entity.InterfaceInfo;
import com.cjx.starsapisdk.model.response.ResultResponse;

import javax.servlet.http.HttpServletRequest;

/**
* @author cjx
* @description 针对表【interface_info(用户接口调用信息)】的数据库操作Service
* @createDate 2024-05-04 21:55:48
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {

    /**
     * 下线用户接口调用
     * @param id
     * @param request
     * @return
     */
    Boolean offlineInterface(long id, HttpServletRequest request);

    /**
     * 上线用户接口调用
     * @param id
     * @param request
     * @return
     */
    boolean onlineInterface(long id, HttpServletRequest request);

    /**
     * 调用用户接口调用
     * @param invokeRequest
     * @param request
     * @return
     */
    ResultResponse invokeInterface(InvokeRequest invokeRequest, HttpServletRequest request);
}
